// import com.alibaba.druid.sql.ast.SQLName_ptr;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.ast.expr.SQLIntegerExpr_ptr;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLBuildTableStatement.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../expr/SQLIntegerExpr.h"
#include "../SQLName.h"

// @Override
void SQLBuildTableStatement::accept0(SQLASTVisitor_ptr visitor)
{
  if (visitor->visit(SharedObject(SQLBuildTableStatement)))
  {
    acceptChild(visitor, this->table);
    acceptChild(visitor, this->version);
  }
  visitor->endVisit(SharedObject(SQLBuildTableStatement));
}

SQLName_ptr SQLBuildTableStatement::getTable()
{
  return table;
}

void SQLBuildTableStatement::setTable(SQLName_ptr table)
{
  this->table = table;
}

SQLIntegerExpr_ptr SQLBuildTableStatement::getVersion()
{
  return version;
}

void SQLBuildTableStatement::setVersion(SQLIntegerExpr_ptr version)
{
  this->version = version;
}

BOOL_ptr SQLBuildTableStatement::isWithSplit()
{
  return withSplit;
}

void SQLBuildTableStatement::setWithSplit(BOOL_ptr withSplit)
{
  this->withSplit = withSplit;
}

BOOL_ptr SQLBuildTableStatement::isForce()
{
  return force;
}

void SQLBuildTableStatement::setForce(BOOL_ptr force)
{
  this->force = force;
}
